@import '../LangSwitch/index.less';

.@{prefix}-rtl-switch {
  height: 16px;
  appearance: none;
  border: 0;
  background-color: transparent;
  cursor: pointer;

  [class*='-switch'] + &,
  [class*='-select'] + & {
    margin-inline-start: 15px;
    margin-inline-end: -15px;
    padding-inline: 15px;
    border-inline-start: 1px solid @c-border;
  }

  > svg {
    height: 16px;
    fill: @c-text-secondary;

    @{dark-selector} & {
      fill: @c-text-secondary-dark;
    }
  }

  &:hover svg {
    fill: @c-primary;

    @{dark-selector} & {
      fill: @c-primary-dark;
    }
  }
}

html[data-direction='rtl'] {
  direction: rtl;
}
